package com.dogegg.lbblog.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@ConfigurationProperties(prefix = "sbb-log")
public class LogRecordProperties {
    private List<LogRecordData> records = new ArrayList<>();

    public List<LogRecordData> getRecords() {
        return records;
    }

    public void setRecords(List<LogRecordData> records) {
        this.records = records;
    }

    public static class LogRecordData {
        private String source;
        private String name;
        private String content;
        private String condition;
        private String processor;
        private Map<String, String> labels;

        public String getSource() {
            return source;
        }

        public void setSource(String source) {
            this.source = source;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public String getCondition() {
            return condition;
        }

        public void setCondition(String condition) {
            this.condition = condition;
        }

        public String getProcessor() {
            return processor;
        }

        public void setProcessor(String processor) {
            this.processor = processor;
        }

        public Map<String, String> getLabels() {
            return labels;
        }

        public void setLabels(Map<String, String> labels) {
            this.labels = labels;
        }
    }
}

